package com.tron.dobest.java.trondesign.decorator;

public class Mocha extends  CondimentDecorator {
    private Beverage beverage;

    public Mocha(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + "[Mocha]";
    }

    @Override
    public double cost() {
        return 0.9 + beverage.cost();
    }
}
